public class TextMain {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.creatList();//创建链表
        mySingleList.display();//打印链表
        mySingleList.addIndex(2,30);//插入节点
        mySingleList.display();
        mySingleList.addIndex(0,29);
        mySingleList.display();
        mySingleList.addFirst(4);//头插
        mySingleList.display();
        mySingleList.addList(6);//尾插
        mySingleList.display();
        boolean ret = mySingleList.contains(20);//判断是否存在20
        System.out.println(ret);
        boolean ret1 = mySingleList.contains(19);
        System.out.println(ret1);
        boolean ret2 = mySingleList.contains(6);
        System.out.println(ret2);
    }
}
